package com.zp.bean.user;

import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import com.zp.bean.common.ResultCommonVo;

/**
 * define permission java bean for web services return which include permisionVo
 * object or collection of permissionVo
 * 
 * @author chenlijun08@gmail.com
 * 
 * @version 1.0
 * 
 * @date 2014/2/20
 */
@XmlRootElement
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class ResultPermissionVo extends ResultCommonVo {

	private static final long serialVersionUID = 1L;

	private PermissionVo permission;
	private List<PermissionVo> list;

	public PermissionVo getPermission() {
		return permission;
	}

	public void setPermission(PermissionVo permission) {
		this.permission = permission;
	}

	public List<PermissionVo> getList() {
		return list;
	}

	public void setList(List<PermissionVo> list) {
		this.list = list;
	}

}
